import { Component, OnInit } from "@angular/core";
import { Test03Service } from "./test03.service";

@Component({
  selector: "app-test03",
  templateUrl: "./test03.component.html",
  styleUrls: ['../style.css',"./test03.component.css"]
})
export class Test03Component implements OnInit {
  constructor(private service: Test03Service) {}

  lst: string[];
  ngOnInit() {
    this.lst = this.service.getlst();
  }
  reload(){
    this.lst = this.service.getlst();
  }
}
